Conditions | 2 |
Total Lines | 13 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import execa from 'execa' |
||
31 | uninstall = async (): Promise<boolean> => { |
||
32 | if (!(await this.isInstalled())) { |
||
33 | error(`${this.name} is not installed.`) |
||
34 | return false |
||
35 | } |
||
36 | |||
37 | info(`Uninstalling ${this.name} using Composer...`) |
||
38 | |||
39 | await execa('composer', ['global', 'remove', 'beyondcode/expose']) |
||
40 | |||
41 | success(`Successfully uninstalled ${this.name}.`) |
||
42 | |||
43 | return true |
||
44 | } |
||
55 | export default Expose |